package community.hospital.service.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import community.hospital.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import community.hospital.entity.request.ListMenuRequest;

import java.util.List;
import java.util.Map;

/**
 * @author ydj
 * @description 针对表【menu】的数据库操作Service
 * @createDate 2023-01-16 16:35:35
 */
public interface MenuService extends IService<Menu> {
    /**
     * 根据角色id查询菜单
     * @param roleId
     * @return
     */
    List<Menu> listMenuByRoleId(Long roleId);

    List<Menu> listMenuByRoleIds(List<Long> roleIds);

    List<Map<Long, Menu>> mapMenuByRoleIds(List<Long> roleIds);

    Page<Menu> listMenu(ListMenuRequest request);
}
